package cn.jx.asc.user.mapper;

import cn.jx.asc.user.pojo.Time;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TimeMapper {
    int deleteByPrimaryKey(Integer timeId);

    int insert(Time record);

    int insertSelective(Time record);

    Time selectByPrimaryKey(Integer timeId);

    int updateByPrimaryKeySelective(Time record);

    int updateByPrimaryKey(Time record);

    /**
     * @author LaiWeiXing
     * @date 2018/6/27 11:09
     * @describe 根据专家方案id和生长周期查找浇灌时间
    */
    List<Time> findTimeListByPlanIdAndCycleId(@Param("planId") Integer planId , @Param("cycleId") Integer cycleId);

    /**
     * @author LaiWeiXing
     * @date 2018/6/28 16:57
     * @describe 根据专家方案id查找浇灌时间
    */
    List<Time> findTimeListByPlanId(Integer planId);
}